<%@ page language="java" pageEncoding="utf-8"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

<title>searchResult</title>

</head>

<body>
<div align="center">

	<table width="800" border="0" cellspacing="1" cellpadding="1">

		<td width="75%" height="15" valig="top">

			<table>
				<tr style="width: 551px; ">
					<td width="100%" nowrap bgcolor=white>
						<div align="center">
							<br><%@include file="/top.jsp"%><br>
						</div>
					</td>
				</tr>
				<tr>

				</tr>
			</table>

			<table class="default" width="100%">
				<col width="10%">
				<col width="10%">
				<col width="20%">
				<col width="10%">
				<col width="18%">
				<col width="5%">
				<col width="5%">
				<col width="5%">
				<tr class="title">
					<td style="text-align:center">图片</td>
					<td style="text-align:center">书号</td>
					<td style="text-align:center">书名</td>
					<td style="text-align:center">作者</td>
					<td style="text-align:center">出版社</td>
					<td style="text-align:center">价格</td>
					<td style="text-align:center">数量</td>
					<td style="text-align:center">类型</td>
					<td style="text-align:center">操作</td>
					<!-- 						<td style="text-align:center">位置</td> -->
				</tr>

				<!-- 遍历开始 -->
				<s:iterator value="#session.searchResult" var="book">
					<tr class="list">
					
					
						<td ><a href="<%=path%>/books/Book_bookDetail.action?bookid=<s:property value="#book.bookid"/>">
											<img src="<%=path %>/images/<s:property value="#book.picture"/>"
											width="100%" height="120" border="0">
									</a></td>
						<td style="text-align:center"><s:property value="#book.bookid" /></td>
						<td style="text-align:center"><s:property value="#book.bookname" /></td>
						<td style="text-align:center"><s:property value="#book.author" /></td>
						<td style="text-align:center"><s:property value="#book.publisherid" /></td>
						<td style="text-align:center"><s:property value="#book.price" /></td>
						<td style="text-align:center"><s:property value="#book.quantity" /></td>
						<s:if test="#book.type == 1">
							<td style="text-align:center">新书</td>
						</s:if>
						<s:elseif test="#book.type == 2">
							<td style="text-align:center">精品</td>
						</s:elseif>
						<s:elseif test="#book.type == 0">
							<td style="text-align:center">普通</td>
						</s:elseif>
					<td><a
							href="<%=path%>/order/Order_addBook2Cart.action?bookid=<s:property value="#book.bookid"/>"
							<s:if test="#session.loginState != 1">
								onclick="javascript: if(confirm('请登录购书系统！')) return false;
								else return false;"
							</s:if>
							>放入购书车</a>&nbsp;&nbsp;
					</td>
					</tr>
				</s:iterator>
			</table>
		</td>

		<tr>
			<td colspan="2">
				<div align="center">
					<br><%@include file="/bottom.jsp"%>
				</div>
			</td>
		</tr>
	</table>
</div>

</body>
</html>


